// 解构
const {Router,urlencoded,json} = require('express');
const router = Router();

// 引入
const goodsRouter = require('./goods');
const userObjRouter = require('./user_object');
const userPoolRouter = require('./user_pool');
const userRouter = require('./user');

// 数据格式化中间件
router.use(urlencoded({extended:false}),json())

// 路由
router.use('/goods',goodsRouter);
router.use('/user_object',userObjRouter);
router.use('/user_pool',userPoolRouter);
router.use('/user',userRouter);

module.exports = router;